Static analyses over weak memory

نویسنده

  • Vincent P. J. Nimal
چکیده

Writing concurrent programs with shared memory is often not trivial. Correctly synchronising the threads and handling the non-determinism of executions require a good understanding of the interleaving semantics. Yet, interleavings are not sufficient to model correctly the executions of modern, multicore processors. These executions follow rules that are weaker than those observed by the interleavings, often leading to reorderings in the sequence of updates and readings from memory; the executions are subject to a weaker memory consistency. Reorderings can produce executions that would not be observable with interleavings, and these possible executions also depend on the architecture that the processors implement. It is therefore necessary to locate and understand these reorderings in the context of a program running, or to prevent them in an automated way. In this dissertation, we aim to automate the reasoning behind weak memory consistency and perform transformations over the code so that developers need not to consider all the specifics of the processors when writing concurrent programs. We claim that we can do automatic static analysis for axiomatically-defined weak memory models. The method that we designed also allows re-use of automated verification tools like model checkers or abstract interpreters that were not designed for weak memory consistency, by modification of the input programs. We define an abstraction in detail that allows us to reason statically about weak memory models over programs. We locate the parts of the code where the semantics could be affected by the weak memory consistency. We then provide a method to explicitly reveal the resulting reorderings so that usual verification techniques can handle the program semantics under a weaker memory consistency. We finally provide a technique that synthesises synchronisations so that the program would behave as if only interleavings were allowed. We finally test these approaches on artificial and real software. We justify our choice of an axiomatic model with the scalability of the approach and the runtime performance of the programs modified by our method.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Modeling of the beam discontinuity with two analyses in strong and weak forms using a torsional spring model

In this paper, a discontinuity in beams whose intensity is adjusted by the spring stiffness factor is modeled using a torsional spring. Adapting two analyses in strong and weak forms for discontinuous beams, the improved governing differential equations and the modified stiffness matrix are derived respectively. In the strong form, two different solution methods have been presented to make an a...

متن کامل

A Relational Shape Abstract Domain

Static analyses aim at inferring semantic properties of programs. While many analyses compute an over-approximation of reachable states, some analyses compute a description of the input-output relations of programs. In the case of numeric programs, several analyses have been proposed that utilize relational numerical abstract domains to describe relations. On the other hand, designing abstracti...

متن کامل

Compression Analysis of Hollow Cylinder Basalt Continuous Filament Epoxy Composite Filled with Shape Memory Wire

This paper presents an experimental investigation into the compression behavior of shape memory alloy hybrid composites (SMAHC) subjected to quasi-static loading taking into account of rotation effects of shape memory wire in basalt continuous filament (BCF) direct roving epoxy composite. Two types of specimen prepared, the BCF direct roving reinforced epoxy composite filled with shape memory w...

متن کامل

Modeling of the Beam Discontinuity with Two Analyses in Strong and Weak Forms using a Torsional Spring Model

In this paper, a discontinuity in beams whose intensity is adjusted by the spring stiffness factor is modeled using a torsional spring. Adapting two analyses in strong and weak forms for discontinuous beams, the improved governing differential equations and the modified stiffness matrix are derived respectively. In the strong form, two different solution methods have been presented to make an a...

متن کامل

Static and Free Vibration Analyses of Functionally Graded Nano-composite Plates Reinforced by Wavy Carbon Nanotubes Resting on a Pasternak Elastic Foundation

In this study, static and free vibration analyses of functionally graded (FG) nanocomposite plates, reinforced by wavy single-walled carbon nanotubes (SWCNTs) resting on a Pasternak elastic foundation, were investigated based on a mesh-free method and modified first-order shear deformation theory (FSDT). Three linear types of FG nanocomposite plate distributions and a uniform distribution of wa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014